package cn.shanks.springbootshirojwt.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Shanks
 * @version 1.0
 * @program cn.shanks.springbootshirojwt.controller
 * @description
 * @date 2020/11/10 13:31
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/get")
//    @RequiresRoles("管理员")
    @RequiresPermissions("test1:get")
    public String get() {
        return "get all";
    }
}
